/*
*@description 网络请求类
*/
import 'package:dio/dio.dart';
import 'package:flutter_app_05/data/model.dart';
import 'package:flutter_app_05/http/DioManager.dart';
import 'package:flutter_app_05/http/nets.dart';
import 'package:flutter_app_05/widget/stateful_widget_extends.dart';


/**
 *@describe 网络请求管理类
 * */
class HttpRequest{
   static void bannerHome(Function successCallback,Function errorCallback){
    DioManager.getInstance().get(RequestPaths.urlBase + RequestPaths.balance_extend, null,(result){
      var produceList = PengZhangJson.fromJson(result);
      successCallback(produceList.data);
    }, errorCallback);

    // DioManager.getInstance().post(url, params, successCallBack, errorCallBack)
  }

}

